import {defineConfig} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import AutoImport from 'unplugin-auto-import/vite'

const path = require('path')

// https://vitejs.dev/config/
// transpileDependencies: ['uview-plus'],

export default defineConfig({
    resolve: {
        alias: {
            '@': path.resolve(__dirname, '/src')
        }
    },
    plugins: [
        uni(),
        AutoImport({
            imports: ['vue', 'vue-router', 'pinia'],
            dirs: ["src/utils", "src/common","src/net"],
            dts: "src/auto-imports.d.ts",
        })
    ],
})
